FROM pivotalservices/jdk8-minimal:latest
VOLUME /tmp
RUN echo "Asia/Shanghai" > /etc/timezone && rm -rf /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
WORKDIR /work
ADD ./target/AJDeviceService-0.0.1.jar ./AJDeviceService.jar
RUN sh -c 'touch ./AJDeviceService.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","./AJDeviceService.jar"]
RUN echo "/work/libs/linux64" >> /etc/ld.so.conf
RUN sh -c 'ldconfig /etc/ld.so.conf.d'
EXPOSE 8080
CMD ["ulimit -c unlimited"]